package linkedlist;

/**
 * @Author wangtengyu
 * @Create 2018-09-03-8:57
 */
public class Node<T> {

  private T data;

  private Node next;

  private Node random;

  private Node prev;

  public Node() {
  }

  public Node(T data) {
    this.data = data;
  }

  public Node(T data, Node next) {
    this.data = data;
    this.next = next;
  }

  public Node getRandom() {
    return random;
  }

  public void setRandom(Node random) {
    this.random = random;
  }

  public T getData() {
    return data;
  }

  public void setData(T data) {
    this.data = data;
  }

  public Node getNext() {
    return next;
  }

  public void setNext(Node next) {
    this.next = next;
  }


  public Node getPrev() {
    return prev;
  }

  public void setPrev(Node prev) {
    this.prev = prev;
  }
}
